package com.samehope.ar.mapper;

import com.samehope.ar.entity.TaskPoint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.samehope.ar.vo.TaskPointDataVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 巡检点快照 Mapper 接口
 * </p>
 *
 * @author Zhang Luo
 * @since 2019-12-23
 */
public interface TaskPointMapper extends BaseMapper<TaskPoint> {

    List<TaskPointDataVO> findByTaskOrPoint(@Param("companyId")Long companyId, @Param("projectId")Long projectId, @Param("taskId")Long taskId, @Param("patrolPointId")Long patrolPointId);

    void insertAll();

    void insertByTask(@Param("taskId") Long taskId, @Param("routeId") Long routeId);

    void delByTaskTime(@Param("taskTime") String taskTime);

    void delByUnFinishTask(@Param("planId") Long planId, @Param("updateBy") Long updateBy);

    void delByUnFinishTask(Long planId);

    void delByTaskId(@Param("taskId")Long taskId, @Param("updateBy") Long updateBy);
}
